//
//  DataToolsControl.m
//  Btpin
//
//  Created by Vic on 2019/3/10.
//  Copyright © 2019 Vic. All rights reserved.
//

#import "DataToolsControl.h"
#import "TUIKit.h"
#import "AppDelegate.h"
#import "IDSelectViewController.h"
#import "CompanyFirstInfoViewController.h"
#import "PMineResumeViewController.h"
#import "PersonalWorkExperienceViewController.h"
#import "PersonalFirstInfoViewController.h"
#import "PersonalEducationInfoViewController.h"
#import "PersonalWorkExperienceViewController.h"
#import "CompanyFirstInfoViewController.h"
#import "CompanySecondInfoViewController.h"
#import "CompanyInfoViewController.h"

@class UIToolsControl;

static DataToolsControl *manager = nil;

@implementation DataToolsControl

+ (instancetype)sharedManager {
    static dispatch_once_t onceToken;
    dispatch_once(&onceToken, ^{
        manager = [[self alloc] init];
    });
    return manager;
}
- (instancetype)init {
    self = [super init];
    if (self) {
        self.chatSentenceArray = [NSMutableArray arrayWithCapacity:0];
    }
    return self;
}

+ (void)dataAnalysisUserInfo:(NSDictionary *)responseObject {
    NSDictionary *infoDic = responseObject[@"data"];
    
    UD_SetOForK([UIToolsControl dataAnalysis:infoDic[@"token"]], isToken);
    UD_SetOForK([UIToolsControl dataAnalysis:infoDic[@"token_expire"]], isTokenExpire);
    UD_SetOForK([UIToolsControl dataAnalysis:infoDic[@"userid"]], isUserID);
    UD_SetOForK([UIToolsControl dataAnalysis:infoDic[@"nickname"]], isNickname);
    UD_SetOForK([UIToolsControl dataAnalysis:infoDic[@"user_role"]], isUserRole);
    UD_SetOForK([UIToolsControl dataAnalysis:infoDic[@"user_guide"]], isUserGuide);
    UD_SetOForK([UIToolsControl dataAnalysis:infoDic[@"sdk_config"][@"identifier"]], isIMUID);
    UD_SetOForK([UIToolsControl dataAnalysis:infoDic[@"sdk_config"][@"im_appid"]], isIMAppID);
    UD_SetOForK([UIToolsControl dataAnalysis:infoDic[@"sdk_config"][@"im_usersig"]], isIMUserSig);
    UD_SetOForK([UIToolsControl dataAnalysis:infoDic[@"sdk_config"][@"im_account_type"]], isIMAccountType);
    UD_SetOForK([UIToolsControl dataAnalysis:infoDic[@"sdk_config"][@"trtc_appid"]], isTrtcAppID);
    UD_SetOForK([UIToolsControl dataAnalysis:infoDic[@"sdk_config"][@"trtc_usersig"]], isTrtcUsersig);
    
    if ([infoDic[@"chat_sentence"] isKindOfClass:[NSArray class]]) {
        if ([DataToolsControl sharedManager].chatSentenceArray && [DataToolsControl sharedManager].chatSentenceArray.count) {
            [[DataToolsControl sharedManager].chatSentenceArray removeAllObjects];
        }
        
        for (NSDictionary *dic in infoDic[@"chat_sentence"]) {
            ChatSentenceModel *model = [[ChatSentenceModel alloc] init];
            [model setValuesForKeysWithDictionary:dic];
            [[DataToolsControl sharedManager].chatSentenceArray addObject:model];
        }
    }
    
    UDSynchronize;
}
+ (void)dataAnalysisUserBaseInfo:(NSDictionary *)responseObject {
    NSDictionary *infoDic = responseObject[@"data"];
    UD_SetOForK([UIToolsControl dataAnalysis:infoDic[@"role"]], isUserRole);
    UD_SetOForK([UIToolsControl dataAnalysis:infoDic[@"sex"]], isSex);
    UD_SetOForK([UIToolsControl dataAnalysis:infoDic[@"username"]], isUserName);
    UD_SetOForK([UIToolsControl dataAnalysis:infoDic[@"nickname"]], isNickname);
    UD_SetOForK([UIToolsControl dataAnalysis:infoDic[@"avatar"]], isAvatar);
    UD_SetOForK([UIToolsControl dataAnalysis:infoDic[@"mobile"]], isMobile);
    UD_SetOForK([UIToolsControl dataAnalysis:infoDic[@"mobile_audit"]], isMobileAudit);
    UD_SetOForK([UIToolsControl dataAnalysis:infoDic[@"email"]], isEmail);
    UD_SetOForK([UIToolsControl dataAnalysis:infoDic[@"email_audit"]], isEmailAudit);
    UD_SetOForK([UIToolsControl dataAnalysis:infoDic[@"realname"]], isRealName);
    UD_SetOForK([UIToolsControl dataAnalysis:infoDic[@"realname_audit"]], isRealNameAudit);
    UD_SetOForK([UIToolsControl dataAnalysis:infoDic[@"weixin"]], isWeixin);
    UD_SetOForK([UIToolsControl dataAnalysis:infoDic[@"weixin_img"]], isWeixin_img);
    UD_SetOForK([UIToolsControl dataAnalysis:infoDic[@"country_code"]], isCountryCode);
    
    UDSynchronize;
}
+ (void)dataAnalysisUserBaseInfoForWorker:(NSDictionary *)responseObject {
    NSDictionary *infoDic = responseObject[@"data"];
    
    UD_SetOForK([UIToolsControl dataAnalysis:infoDic[@"name"]], isNickname);
    UD_SetOForK([UIToolsControl dataAnalysis:infoDic[@"sex"]], isSex);
    UD_SetOForK([UIToolsControl dataAnalysis:infoDic[@"avatar"]], isAvatar);
    UD_SetOForK([UIToolsControl dataAnalysis:infoDic[@"resume_percent"]], isResumePercent);
    UD_SetOForK([UIToolsControl dataAnalysis:infoDic[@"apply_num"]], isApplyNum);
    UD_SetOForK([UIToolsControl dataAnalysis:infoDic[@"interview_num"]], isInterviewNum);
    UD_SetOForK([UIToolsControl dataAnalysis:infoDic[@"new_interview"]], isNewInterview);
    UD_SetOForK([UIToolsControl dataAnalysis:infoDic[@"focus_num"]], isFocusNum);
    UD_SetOForK([UIToolsControl dataAnalysis:infoDic[@"current"]], isCurrent);
    UD_SetOForK([UIToolsControl dataAnalysis:infoDic[@"current_cn"]], isCurrentCn);
    UD_SetOForK([UIToolsControl dataAnalysis:infoDic[@"resume_id"]], isResumeID);
    UD_SetOForK([UIToolsControl dataAnalysis:infoDic[@"is_graduate"]], isGraduate);
    UD_SetOForK([UIToolsControl dataAnalysis:infoDic[@"credit_level_cn"]], isCreditLevelCn);
    UD_SetOForK([UIToolsControl dataAnalysis:infoDic[@"headhunt_service"]], isHeadhuntService);
    
    UDSynchronize;
}
+ (void)dataAnalysisUserBaseInfoForCompany:(NSDictionary *)responseObject {
    NSDictionary *infoDic = responseObject[@"data"];
    
    UD_SetOForK([UIToolsControl dataAnalysis:infoDic[@"userinfo"][@"name"]], isCompanyUserInfoName);
    UD_SetOForK([UIToolsControl dataAnalysis:infoDic[@"userinfo"][@"avatar"]], isCompanyUserInfoAvatar);
    UD_SetOForK([UIToolsControl dataAnalysis:infoDic[@"integrity_union"]], isCompanyIntegrityUnion);
    
    UDSynchronize;
}
+ (void)dataAnalysisRealNameInfo:(NSDictionary *)responseObject {
    NSDictionary *infoDic = responseObject[@"data"];
    
    UD_SetOForK([UIToolsControl dataAnalysis:infoDic[@"audit"]], isAudit);
    UD_SetOForK([UIToolsControl dataAnalysis:infoDic[@"audit_time"]], isAuditTime);
    UD_SetOForK([UIToolsControl dataAnalysis:infoDic[@"audit_note"]], isAuditNote);
    UD_SetOForK([UIToolsControl dataAnalysis:infoDic[@"realname"]], isRealName);
    UD_SetOForK([UIToolsControl dataAnalysis:infoDic[@"idcard"]], isIDCard);
    UD_SetOForK([UIToolsControl dataAnalysis:infoDic[@"idcard_front"]], isIDCardFront);
    UD_SetOForK([UIToolsControl dataAnalysis:infoDic[@"idcard_back"]], isIDCardBack);
    
    UDSynchronize;
}
+ (void)deallocUserData {
    UD_SetOForK(isNo, isSignin);
    UD_SetOForK(@"", isUserRole);
    UD_SetOForK(isTouristsToken, isToken);
    UD_SetOForK(@"", isUserID);
    UD_SetOForK(@"", isCompanyID);
    UD_SetOForK(@"", isNickname);
    UD_SetOForK(@"", isUserGuide);
    UD_SetOForK(@"", isSex);
    UD_SetOForK(@"", isUserName);
    UD_SetOForK(@"", isAvatar);
    UD_SetOForK(@"", isMobile);
    UD_SetOForK(@"", isMobileAudit);
    UD_SetOForK(@"", isEmail);
    UD_SetOForK(@"", isEmailAudit);
    UD_SetOForK(@"", isRealName);
    UD_SetOForK(@"", isRealNameAudit);
    UD_SetOForK(@"", isWeixin);
    UD_SetOForK(@"", isWeixin_img);
    UD_SetOForK(@"", isCompanyUserInfoName);
    UD_SetOForK(@"", isCompanyUserInfoAvatar);
    
    [DataToolsControl sharedManager].isWXSigninCode = @"";
    [DataToolsControl sharedManager].isWXSigninToken = @"";
    
    UDSynchronize;
}
#pragma mark - 自动登录
+ (void)autoLogin {
    if ([UD_GetOForK(isToken) isEqualToString:isTouristsToken]) {
        return;
    }
    NSMutableDictionary *dic = [NSMutableDictionary dictionaryWithCapacity:0];
    dic = [UIToolsControl getPublicParameter];
    
    [BaseNetManager requestWithMethod:POST path:Signin_Auto_URL params:dic successBlock:^(NSDictionary *responseObject) {
        if ([responseObject[@"code"] integerValue] == 2000) {
            [DataToolsControl dataAnalysisUserInfo:responseObject];
            
            [[TUIKit sharedInstance] initKit:[UD_GetOForK(isIMAppID) integerValue] accountType:UD_GetOForK(isIMAccountType) withConfig:[TUIKitConfig defaultConfig]];
            TIMLoginParam *login_param = [[TIMLoginParam alloc ]init];
            // identifier 为用户名，userSig 为用户登录凭证
            // appidAt3rd 在私有帐号情况下，填写与 sdkAppId 一样
            login_param.identifier = UD_GetOForK(isUserID);
            login_param.userSig = UD_GetOForK(isIMUserSig);
            login_param.appidAt3rd = UD_GetOForK(isIMAppID);
            [[TIMManager sharedInstance] login:login_param succ:^(){
                [DataToolsControl sharedManager].isTIMLoginSuccess = YES;
                NSLog(@"Init Succ");
//                if ([DataToolsControl sharedManager].deviceToken && [DataToolsControl sharedManager].deviceToken.length) {
                NSData *tokenData = UD_GetOForK(isDeviceToken);
                if (tokenData && tokenData.length) {
                    TIMTokenParam *param = [[TIMTokenParam alloc] init];
#if DEBUG
                    param.busiId = TIMPushDevID;
#else
                    param.busiId = TIMPushReleaseID;
#endif
//                    [param setToken:[DataToolsControl sharedManager].deviceToken];
                    [param setToken:UD_GetOForK(isDeviceToken)];
                    [[TIMManager sharedInstance] setToken:param succ:^{
                        NSLog(@"-----> 上传 token 成功 ");
                    } fail:^(int code, NSString *msg) {
                        NSLog(@"-----> 上传 token 失败 ");
                    }];
                }
            } fail:^(int code, NSString * err) {
                [DataToolsControl sharedManager].isTIMLoginSuccess = NO;
                NSLog(@"Login Failed: %d->%@", code, err);
            }];
            
            NSDictionary *data = responseObject[@"data"];
            if (data[@"user_guide"] && [data[@"user_guide"] length] && ([data[@"user_guide"] isEqualToString:@"choose_role"])) { // 用户还没选角色 （选择用户角色）
                [SharedApp showViewController:TabBarTypeOfSignin];
                
                RootNavigationController *navigationController = (RootNavigationController *)[UIApplication sharedApplication].keyWindow.rootViewController;
                
                IDSelectViewController *IDSVC = [[IDSelectViewController alloc] init];
                IDSVC.hidesBottomBarWhenPushed = YES;
                [navigationController pushViewController:IDSVC animated:NO];
            } else {
                if ([data[@"user_guide"] isEqualToString:@"company_add_job"]) { // 添加工作
                    [DataToolsControl getMyBaseInfoForCompany:^(BOOL requestFlag) {
                        [SharedApp showViewController:TabBarTypeOfCompany];
                        UITabBarController *tabBarController = (UITabBarController *)[UIApplication sharedApplication].keyWindow.rootViewController;
                        tabBarController.selectedIndex = 1;
                    }];
                } else if ([data[@"user_guide"] isEqualToString:@"company_create"]) { // 招聘者下面没有企业的话就会引导创建
                    [SharedApp showViewController:TabBarTypeOfSignin];
                    
                    RootNavigationController *navigationController = (RootNavigationController *)[UIApplication sharedApplication].keyWindow.rootViewController;
                    
                    CompanyFirstInfoViewController *IDSVC = [[CompanyFirstInfoViewController alloc] init];
                    IDSVC.hidesBottomBarWhenPushed = YES;
                    [navigationController pushViewController:IDSVC animated:NO];
                } else if ([data[@"user_guide"] isEqualToString:@"company_info"]) { // 填写企业信息
                    [SharedApp showViewController:TabBarTypeOfSignin];
                    
                    RootNavigationController *navigationController = (RootNavigationController *)[UIApplication sharedApplication].keyWindow.rootViewController;
                    
                    CompanySecondInfoViewController *IDSVC = [[CompanySecondInfoViewController alloc] init];
                    IDSVC.hidesBottomBarWhenPushed = YES;
                    [navigationController pushViewController:IDSVC animated:NO];
                } else if ([data[@"user_guide"] isEqualToString:@"company_audit"]) { // 企业未认证
                    SVPHUDShow;
                    [DataToolsControl getMyBaseInfoForCompany:^(BOOL requestFlag) {
                        SVPHUDDismiss;
                        [SharedApp showViewController:TabBarTypeOfCompany];
                        UITabBarController *tabBarController = (UITabBarController *)[UIApplication sharedApplication].keyWindow.rootViewController;
                        tabBarController.selectedIndex = tabBarController.viewControllers.count-1;
                        UINavigationController *navigationController = (UINavigationController *)[UIApplication sharedApplication].keyWindow.rootViewController;
                        
                        CompanyInfoViewController *CIVC = [[CompanyInfoViewController alloc] init];
                        CIVC.hidesBottomBarWhenPushed = YES;
                        [navigationController pushViewController:CIVC animated:NO];
                    }];
                } else if (([data[@"user_guide"] isEqualToString:@"resume_create"])) { // 创建简历页
                    [SharedApp showViewController:TabBarTypeOfSignin];
                    
                    RootNavigationController *navigationController = (RootNavigationController *)[UIApplication sharedApplication].keyWindow.rootViewController;
                    
                    PersonalFirstInfoViewController *PMRVC = [[PersonalFirstInfoViewController alloc] init];
                    PMRVC.hidesBottomBarWhenPushed = YES;
                    [navigationController pushViewController:PMRVC animated:NO];
                } else if ([data[@"user_guide"] isEqualToString:@"resume_edu"]) { // 完善简历中教育经历
                    if (data[@"is_graduate"] && ([data[@"is_graduate"] integerValue] == 0)) {
                        [DataToolsControl sharedManager].idType = IDTypeOfWorker;
                    } else {
                        [DataToolsControl sharedManager].idType = IDTypeOfFreshGraduate;
                    }
                    
                    [SharedApp showViewController:TabBarTypeOfSignin];
                    
                    RootNavigationController *navigationController = (RootNavigationController *)[UIApplication sharedApplication].keyWindow.rootViewController;
                    
                    PersonalEducationInfoViewController *PMRVC = [[PersonalEducationInfoViewController alloc] init];
                    PMRVC.hidesBottomBarWhenPushed = YES;
                    [navigationController pushViewController:PMRVC animated:NO];
                } else if ([data[@"user_guide"] isEqualToString:@"resume_work"]) { // 完善简历中工作经历
                    [SharedApp showViewController:TabBarTypeOfSignin];
                    
                    RootNavigationController *navigationController = (RootNavigationController *)[UIApplication sharedApplication].keyWindow.rootViewController;
                    
                    PersonalWorkExperienceViewController *PMRVC = [[PersonalWorkExperienceViewController alloc] init];
                    PMRVC.hidesBottomBarWhenPushed = YES;
                    [navigationController pushViewController:PMRVC animated:NO];
                }
//                else {
//                    if ([data[@"user_role"] isEqualToString:@"1"]) {
//                        [SharedApp showViewController:TabBarTypeOfCompany];
//                    } else {
//                        [SharedApp showViewController:TabBarTypeOfPersonal];
//                    }
//                }
            }
//            else { // 自动登录失败，跳登录页？？？
//                [SharedApp showViewController:TabBarTypeOfSignin];
//            }
        } else {
//            SVPHUDError(responseObject[@"msg"]);
        }
    } failurBlock:^(NSError *error) {
//        SVPHUDError(NetErrorAlertText);
//        [DataToolsControl autoLogin];
    }];
}
#pragma mark - 初始化IM
+ (void)autoLoginForInitIM {
    NSMutableDictionary *dic = [NSMutableDictionary dictionaryWithCapacity:0];
    dic = [UIToolsControl getPublicParameter];
    
    [BaseNetManager requestWithMethod:POST path:Signin_Auto_URL params:dic successBlock:^(NSDictionary *responseObject) {
        if ([responseObject[@"code"] integerValue] == 2000) {
            [DataToolsControl dataAnalysisUserInfo:responseObject];
            
            [[TUIKit sharedInstance] initKit:[UD_GetOForK(isIMAppID) integerValue] accountType:UD_GetOForK(isIMAccountType) withConfig:[TUIKitConfig defaultConfig]];
            TIMLoginParam *login_param = [[TIMLoginParam alloc ]init];
            // identifier 为用户名，userSig 为用户登录凭证
            // appidAt3rd 在私有帐号情况下，填写与 sdkAppId 一样
            login_param.identifier = UD_GetOForK(isUserID);
            login_param.userSig = UD_GetOForK(isIMUserSig);
            login_param.appidAt3rd = UD_GetOForK(isIMAppID);
            [[TIMManager sharedInstance] login: login_param succ:^(){
                [DataToolsControl sharedManager].isTIMLoginSuccess = YES;
                NSLog(@"Init Succ");
//                if ([DataToolsControl sharedManager].deviceToken && [DataToolsControl sharedManager].deviceToken.length) {
                NSData *tokenData = UD_GetOForK(isDeviceToken);
                if (tokenData && tokenData.length) {
                    TIMTokenParam *param = [[TIMTokenParam alloc] init];
#if DEBUG
                    param.busiId = TIMPushDevID;
#else
                    param.busiId = TIMPushReleaseID;
#endif
//                    [param setToken:[DataToolsControl sharedManager].deviceToken];
                    [param setToken:UD_GetOForK(isDeviceToken)];
                    [[TIMManager sharedInstance] setToken:param succ:^{
                        NSLog(@"-----> 上传 token 成功 ");
                    } fail:^(int code, NSString *msg) {
                        NSLog(@"-----> 上传 token 失败 ");
                    }];
                }
            } fail:^(int code, NSString * err) {
                [DataToolsControl sharedManager].isTIMLoginSuccess = NO;
                NSLog(@"Login Failed: %d->%@", code, err);
            }];
        } else {
            [DataToolsControl autoLoginForInitIM];
        }
    } failurBlock:^(NSError *error) {
        [DataToolsControl autoLoginForInitIM];
    }];
}
#pragma mark - 初始化IM相关配置
+ (void)initIMPeizhi {
    [[TUIKit sharedInstance] initKit:[UD_GetOForK(isIMAppID) integerValue] accountType:UD_GetOForK(isIMAccountType) withConfig:[TUIKitConfig defaultConfig]];
    TIMLoginParam *login_param = [[TIMLoginParam alloc ]init];
    // identifier 为用户名，userSig 为用户登录凭证
    // appidAt3rd 在私有帐号情况下，填写与 sdkAppId 一样
    login_param.identifier = UD_GetOForK(isUserID);
    login_param.userSig = UD_GetOForK(isIMUserSig);
    login_param.appidAt3rd = UD_GetOForK(isIMAppID);
    [[TIMManager sharedInstance] login: login_param succ:^(){
        [DataToolsControl sharedManager].isTIMLoginSuccess = YES;
        NSLog(@"Init Succ");
//                if ([DataToolsControl sharedManager].deviceToken && [DataToolsControl sharedManager].deviceToken.length) {
        NSData *tokenData = UD_GetOForK(isDeviceToken);
        if (tokenData && tokenData.length) {
            TIMTokenParam *param = [[TIMTokenParam alloc] init];
#if DEBUG
            param.busiId = TIMPushDevID;
#else
            param.busiId = TIMPushReleaseID;
#endif
//             [param setToken:[DataToolsControl sharedManager].deviceToken];
            [param setToken:UD_GetOForK(isDeviceToken)];
            [[TIMManager sharedInstance] setToken:param succ:^{
                NSLog(@"-----> 上传 token 成功 ");
            } fail:^(int code, NSString *msg) {
                NSLog(@"-----> 上传 token 失败 ");
            }];
        }
    } fail:^(int code, NSString * err) {
        [DataToolsControl sharedManager].isTIMLoginSuccess = NO;
        NSLog(@"Login Failed: %d->%@", code, err);
    }];
}
#pragma mark - 帐号-获取我的基本信息
+ (void)getMyBaseInfo {
    NSMutableDictionary *dic = [NSMutableDictionary dictionaryWithCapacity:0];
    dic = [UIToolsControl getPublicParameter];
    [BaseNetManager requestWithMethod:POST path:MyBaseInfo_Get_URL params:dic successBlock:^(NSDictionary *responseObject) {
        if ([responseObject[@"code"] integerValue] == 2000) {
            [DataToolsControl dataAnalysisUserBaseInfo:responseObject];
        }
    } failurBlock:^(NSError *error) {
        SVPHUDError(NetErrorAlertText);
    }];
}
#pragma mark - 帐号-获取我的基本信息(求职用户)
+ (void)getMyBaseInfoForWorker:(requestBlock)requestBackBlock {
    NSMutableDictionary *dic = [NSMutableDictionary dictionaryWithCapacity:0];
    dic = [UIToolsControl getPublicParameter];
    [BaseNetManager requestWithMethod:POST path:Person_GetMineInfo_URL params:dic successBlock:^(NSDictionary *responseObject) {
        if ([responseObject[@"code"] integerValue] == 2000) {
            [DataToolsControl dataAnalysisUserBaseInfoForWorker:responseObject];
            requestBackBlock(YES);
        } else {
            requestBackBlock(NO);
        }
    } failurBlock:^(NSError *error) {
        requestBackBlock(NO);
    }];
}
#pragma mark - 帐号-获取我的基本信息(招聘者)
+ (void)getMyBaseInfoForCompany:(requestBlock)requestBackBlock {
    NSMutableDictionary *dic = [NSMutableDictionary dictionaryWithCapacity:0];
    dic = [UIToolsControl getPublicParameter];
    [BaseNetManager requestWithMethod:POST path:Company_GetBaseInfo_URL params:dic successBlock:^(NSDictionary *responseObject) {
        if ([responseObject[@"code"] integerValue] == 2000) {
            [DataToolsControl dataAnalysisUserBaseInfoForCompany:responseObject];
            if (![DataToolsControl sharedManager].companyBaseInfoModel) {
                [DataToolsControl sharedManager].companyBaseInfoModel = [[CompanyBaseInfoModel alloc] init];
            }
            [[DataToolsControl sharedManager].companyBaseInfoModel setValuesForKeysWithDictionary:responseObject[@"data"]];
            requestBackBlock(YES);
        } else {
            requestBackBlock(NO);
        }
    } failurBlock:^(NSError *error) {
        requestBackBlock(NO);
    }];
}
#pragma mark - 帐号-获取实名认证信息
+ (void)getRealNameInfo {
    NSMutableDictionary *dic = [NSMutableDictionary dictionaryWithCapacity:0];
    dic = [UIToolsControl getPublicParameter];
    [BaseNetManager requestWithMethod:POST path:User_GetRealnameInfo_URL params:dic successBlock:^(NSDictionary *responseObject) {
        if ([responseObject[@"code"] integerValue] == 2000) {
            [DataToolsControl dataAnalysisRealNameInfo:responseObject];
        }
    } failurBlock:^(NSError *error) {
//        SVPHUDError(NetErrorAlertText);
    }];
}

#pragma mark - 获取公共分类
+ (void)getPublicAllCategory {
    NSDictionary *dic = [UIToolsControl getPublicParameter];
    [BaseNetManager requestWithMethod:POST path:Public_Category_URL params:dic successBlock:^(NSDictionary *responseObject) {
        if ([responseObject[@"code"] integerValue] == 2000) {
            id data = responseObject[@"data"];
            
//            [DataToolsControl sharedManager].allCategoryInfoModel = [[PublicAllCategoryInfoModel alloc] init];
            [[DataToolsControl sharedManager].allCategoryInfoModel setValuesForKeysWithDictionary:(NSDictionary *)data];
            
            NSString *filePath = AllCategoryDataFilePath;
            [data writeToFile:filePath atomically:YES];
        }
    } failurBlock:^(NSError * _Nonnull error) {
        NSLog(@"%@", error);
    }];
}
// 获取国家/地区编码
+ (void)getPublicCountryCode {
    NSDictionary *dic = [UIToolsControl getPublicParameter];
    [dic setValue:@"country_code" forKey:@"name"];
    [BaseNetManager requestWithMethod:POST path:Public_Category_URL params:dic successBlock:^(NSDictionary *responseObject) {
        if ([responseObject[@"code"] integerValue] == 2000) {
            id data = responseObject[@"data"];
            
            [self handleCountryCodesData:data];
            
            NSString *filePath = AllCategoryForCountryCodeDataFilePath;
            [data writeToFile:filePath atomically:YES];
        }
    } failurBlock:^(NSError * _Nonnull error) {
        NSLog(@"%@", error);
    }];
}
+ (void)handleCountryCodesData:(NSDictionary *)data {
    [DataToolsControl sharedManager].allCategoryInfoModel.countryCodeListArray = [NSMutableArray arrayWithCapacity:0];
    if ([data[@"country_code"] isKindOfClass:[NSArray class]]) {
        for (NSDictionary *dic in data[@"country_code"]) {
            PublicCategoryElementModel *model = [[PublicCategoryElementModel alloc] init];
            [model setValuesForKeysWithDictionary:dic];
            [[DataToolsControl sharedManager].allCategoryInfoModel.countryCodeListArray addObject:model];
        }
    }
}
+ (void)getPublicJobCats {
    NSDictionary *dic = [UIToolsControl getPublicParameter];
    [dic setValue:@"job_cats" forKey:@"name"];
    
    [BaseNetManager requestWithMethod:POST path:Public_Category_URL params:dic successBlock:^(NSDictionary *responseObject) {
        if ([responseObject[@"code"] integerValue] == 2000) {
            id data = responseObject[@"data"];
            
            [self handleJobCatsData:data];
            
            NSString *filePath = AllCategoryForJobCatsDataFilePath;
            [data writeToFile:filePath atomically:YES];
        }
    } failurBlock:^(NSError * _Nonnull error) {
        NSLog(@"%@", error);
    }];
}
+ (void)handleJobCatsData:(NSDictionary *)data {
    [DataToolsControl sharedManager].allCategoryInfoModel.jobCatsArray = [NSMutableArray arrayWithCapacity:0];
    [DataToolsControl sharedManager].allCategoryInfoModel.jobCatsArrayForOneLevel = [NSMutableArray arrayWithCapacity:0];
    if ([data[@"job_cats"] isKindOfClass:[NSArray class]]) {
        for (NSDictionary *dic in data[@"job_cats"]) {
            PublicCategoryElementModel *model = [[PublicCategoryElementModel alloc] init];
            [model setValuesForKeysWithDictionary:dic];
            [[DataToolsControl sharedManager].allCategoryInfoModel.jobCatsArray addObject:model];
        }
        
        [DataToolsControl sharedManager].allCategoryInfoModel.jobCatsArrayForOneLevel = [self handleJobCatsLevel:nil];
        for (NSInteger i = 0; i < [DataToolsControl sharedManager].allCategoryInfoModel.jobCatsArrayForOneLevel.count; i++) {
            PublicCategoryElementModel *twoModel = [DataToolsControl sharedManager].allCategoryInfoModel.jobCatsArrayForOneLevel[i];
            twoModel.jobCatsArrayForTworThreeLevel = [NSMutableArray arrayWithCapacity:0];
            twoModel.jobCatsArrayForTworThreeLevel = [self handleJobCatsLevel:twoModel];
            
            for (NSInteger i = 0; i < twoModel.jobCatsArrayForTworThreeLevel.count; i++) {
                PublicCategoryElementModel *threeModel = twoModel.jobCatsArrayForTworThreeLevel[i];
                threeModel.jobCatsArrayForTworThreeLevel = [NSMutableArray arrayWithCapacity:0];
                threeModel.jobCatsArrayForTworThreeLevel = [self handleJobCatsLevel:threeModel];
            }
        }
    }
}
+ (NSMutableArray *)handleJobCatsLevel:(PublicCategoryElementModel * _Nullable)itemModel {
    NSMutableArray *returnArray = [NSMutableArray arrayWithCapacity:0];
    for (PublicCategoryElementModel *model in [DataToolsControl sharedManager].allCategoryInfoModel.jobCatsArray) {
        if (itemModel) {
            if ([model.pid isEqualToString:itemModel.id]) {
                [returnArray addObject:[model copy]];
            }
        } else {
            if ([model.pid isEqualToString:@"0"]) {
                [returnArray addObject:[model copy]];
            }
        }
    }
    return returnArray;
}


#pragma  mark - 上传图片
+ (void)uploadImgType:(UploadImgType)type image:(UIImage *)image successBlock:(requestSuccessBlock)success failurBlock:(requestFailureBlock)failure {
    [UIApplication sharedApplication].keyWindow.userInteractionEnabled = NO;
    NSString *typeText = @"";
    switch (type) {
        case UploadImgTypeOfHeader: {
            typeText = @"avatar";
        } break;
        case UploadImgTypeOfEduCert: {
            typeText = @"resume_edu_cert";
        } break;
        case UploadImgTypeOfProject: {
            typeText = @"resume_project";
        } break;
        case UploadImgTypeOfCertificateImg: {
            typeText = @"certificate_img";
        } break;
        case UploadImgTypeOfCompanyLogo: {
            typeText = @"company_logo";
        } break;
        case UploadImgTypeOfCompanyImg: {
            typeText = @"company_img";
        } break;
        case UploadImgTypeOfResumeWork: {
            typeText = @"resume_work";
        } break;
        case UploadImgTypeOfResumeImg: {
            typeText = @"resume_img";
        } break;
        case UploadImgTypeOfResumeCredent: {
            typeText = @"resume_credent";
        } break;
        case UploadImgTypeOfResumeTraining: {
            typeText = @"resume_training";
        } break;
        case UploadImgTypeOfWeixin: {
            typeText = @"weixin";
        } break;
        case UploadImgTypeOfIDCard: {
            typeText = @"idcard";
        } break;
        default:
            break;
    }
    NSMutableDictionary *dic = [NSMutableDictionary dictionaryWithCapacity:0];
    dic = [UIToolsControl getPublicParameter];
    [dic setObject:typeText forKey:@"type"];
    [dic setObject:[NSString stringWithFormat:@"%@ios.png", [UIToolsControl getCurrentTimestamp]] forKey:@"name"];
    
//    NSData *imageData = UIImageJPEGRepresentation(image, 0.5);
    NSData *imageData = UIImagePNGRepresentation(image);
    NSString *image64 = [imageData base64EncodedStringWithOptions:NSDataBase64Encoding64CharacterLineLength];
    [dic setObject:image64 forKey:@"file_raw"];
    
//    [[BaseNetManager sharedManager] requestWithMethod:POST path:Public_UploadImg_URL params:dic successBlock:^(NSDictionary * _Nonnull responseObject) {
//        success(responseObject);
//        [UIApplication sharedApplication].keyWindow.userInteractionEnabled = YES;
//    } failurBlock:^(NSError * _Nonnull error) {
//        failure(error);
//        [UIApplication sharedApplication].keyWindow.userInteractionEnabled = YES;
//    }];
    
    [BaseNetManager requestWithMethod:POST path:Public_UploadImg_URL params:dic successBlock:^(NSDictionary * _Nonnull responseObject) {
        success(responseObject);
        [UIApplication sharedApplication].keyWindow.userInteractionEnabled = YES;
    } failurBlock:^(NSError * _Nonnull error) {
        failure(error);
        [UIApplication sharedApplication].keyWindow.userInteractionEnabled = YES;
    }];
}
#pragma mark - 薪资区间
+ (NSArray *)wageRange {
    NSArray *arr = @[@{@"id":@"", @"showText":@"1k", @"dataText":@"1000", @"items":@[@{@"id":@"", @"showText":@"2k", @"dataText":@"2000", @"items":@[]}, @{@"id":@"", @"showText":@"3k", @"dataText":@"3000", @"items":@[]}, @{@"id":@"", @"showText":@"4k", @"dataText":@"4000", @"items":@[]}, @{@"id":@"", @"showText":@"5k", @"dataText":@"5000", @"items":@[]}, @{@"id":@"", @"showText":@"6k", @"dataText":@"6000", @"items":@[]}, @{@"id":@"", @"showText":@"7k", @"dataText":@"7000", @"items":@[]}, @{@"id":@"", @"showText":@"8k", @"dataText":@"8000", @"items":@[]}, @{@"id":@"", @"showText":@"9k", @"dataText":@"9000", @"items":@[]}, @{@"id":@"", @"showText":@"10k", @"dataText":@"10000", @"items":@[]}, @{@"id":@"", @"showText":@"11k", @"dataText":@"11000", @"items":@[]}, @{@"id":@"", @"showText":@"12k", @"dataText":@"12000", @"items":@[]}, @{@"id":@"", @"showText":@"13k", @"dataText":@"13000", @"items":@[]}, @{@"id":@"", @"showText":@"14k", @"dataText":@"14000", @"items":@[]}, @{@"id":@"", @"showText":@"15k", @"dataText":@"15000", @"items":@[]}, @{@"id":@"", @"showText":@"16k", @"dataText":@"16000", @"items":@[]}, @{@"id":@"", @"showText":@"17k", @"dataText":@"17000", @"items":@[]}, @{@"id":@"", @"showText":@"18k", @"dataText":@"18000", @"items":@[]}, @{@"id":@"", @"showText":@"19k", @"dataText":@"19000", @"items":@[]}, @{@"id":@"", @"showText":@"20k", @"dataText":@"20000", @"items":@[]}, @{@"id":@"", @"showText":@"25k", @"dataText":@"25000", @"items":@[]}, @{@"id":@"", @"showText":@"30k", @"dataText":@"30000", @"items":@[]}, @{@"id":@"", @"showText":@"35k", @"dataText":@"35000", @"items":@[]}, @{@"id":@"", @"showText":@"40k", @"dataText":@"40000", @"items":@[]}, @{@"id":@"", @"showText":@"50k", @"dataText":@"50000", @"items":@[]}, @{@"id":@"", @"showText":@"100k", @"dataText":@"100000", @"items":@[]}]}, @{@"id":@"", @"showText":@"2k", @"dataText":@"2000", @"items":@[@{@"id":@"", @"showText":@"3k", @"dataText":@"3000", @"items":@[]}, @{@"id":@"", @"showText":@"4k", @"dataText":@"4000", @"items":@[]}, @{@"id":@"", @"showText":@"5k", @"dataText":@"5000", @"items":@[]}, @{@"id":@"", @"showText":@"6k", @"dataText":@"6000", @"items":@[]}, @{@"id":@"", @"showText":@"7k", @"dataText":@"7000", @"items":@[]}, @{@"id":@"", @"showText":@"8k", @"dataText":@"8000", @"items":@[]}, @{@"id":@"", @"showText":@"9k", @"dataText":@"9000", @"items":@[]}, @{@"id":@"", @"showText":@"10k", @"dataText":@"10000", @"items":@[]}, @{@"id":@"", @"showText":@"11k", @"dataText":@"11000", @"items":@[]}, @{@"id":@"", @"showText":@"12k", @"dataText":@"12000", @"items":@[]}, @{@"id":@"", @"showText":@"13k", @"dataText":@"13000", @"items":@[]}, @{@"id":@"", @"showText":@"14k", @"dataText":@"14000", @"items":@[]}, @{@"id":@"", @"showText":@"15k", @"dataText":@"15000", @"items":@[]}, @{@"id":@"", @"showText":@"16k", @"dataText":@"16000", @"items":@[]}, @{@"id":@"", @"showText":@"17k", @"dataText":@"17000", @"items":@[]}, @{@"id":@"", @"showText":@"18k", @"dataText":@"18000", @"items":@[]}, @{@"id":@"", @"showText":@"19k", @"dataText":@"19000", @"items":@[]}, @{@"id":@"", @"showText":@"20k", @"dataText":@"20000", @"items":@[]}, @{@"id":@"", @"showText":@"25k", @"dataText":@"25000", @"items":@[]}, @{@"id":@"", @"showText":@"30k", @"dataText":@"30000", @"items":@[]}, @{@"id":@"", @"showText":@"35k", @"dataText":@"35000", @"items":@[]}, @{@"id":@"", @"showText":@"40k", @"dataText":@"40000", @"items":@[]}, @{@"id":@"", @"showText":@"50k", @"dataText":@"50000", @"items":@[]}, @{@"id":@"", @"showText":@"100k", @"dataText":@"100000", @"items":@[]}]}, @{@"id":@"", @"showText":@"3k", @"dataText":@"3000", @"items":@[@{@"id":@"", @"showText":@"4k", @"dataText":@"4000", @"items":@[]}, @{@"id":@"", @"showText":@"5k", @"dataText":@"5000", @"items":@[]}, @{@"id":@"", @"showText":@"6k", @"dataText":@"6000", @"items":@[]}, @{@"id":@"", @"showText":@"7k", @"dataText":@"7000", @"items":@[]}, @{@"id":@"", @"showText":@"8k", @"dataText":@"8000", @"items":@[]}, @{@"id":@"", @"showText":@"9k", @"dataText":@"9000", @"items":@[]}, @{@"id":@"", @"showText":@"10k", @"dataText":@"10000", @"items":@[]}, @{@"id":@"", @"showText":@"11k", @"dataText":@"11000", @"items":@[]}, @{@"id":@"", @"showText":@"12k", @"dataText":@"12000", @"items":@[]}, @{@"id":@"", @"showText":@"13k", @"dataText":@"13000", @"items":@[]}, @{@"id":@"", @"showText":@"14k", @"dataText":@"14000", @"items":@[]}, @{@"id":@"", @"showText":@"15k", @"dataText":@"15000", @"items":@[]}, @{@"id":@"", @"showText":@"16k", @"dataText":@"16000", @"items":@[]}, @{@"id":@"", @"showText":@"17k", @"dataText":@"17000", @"items":@[]}, @{@"id":@"", @"showText":@"18k", @"dataText":@"18000", @"items":@[]}, @{@"id":@"", @"showText":@"19k", @"dataText":@"19000", @"items":@[]}, @{@"id":@"", @"showText":@"20k", @"dataText":@"20000", @"items":@[]}, @{@"id":@"", @"showText":@"25k", @"dataText":@"25000", @"items":@[]}, @{@"id":@"", @"showText":@"30k", @"dataText":@"30000", @"items":@[]}, @{@"id":@"", @"showText":@"35k", @"dataText":@"35000", @"items":@[]}, @{@"id":@"", @"showText":@"40k", @"dataText":@"40000", @"items":@[]}, @{@"id":@"", @"showText":@"50k", @"dataText":@"50000", @"items":@[]}, @{@"id":@"", @"showText":@"100k", @"dataText":@"100000", @"items":@[]}]}, @{@"id":@"", @"showText":@"4k", @"dataText":@"4000", @"items":@[@{@"id":@"", @"showText":@"5k", @"dataText":@"5000", @"items":@[]}, @{@"id":@"", @"showText":@"6k", @"dataText":@"6000", @"items":@[]}, @{@"id":@"", @"showText":@"7k", @"dataText":@"7000", @"items":@[]}, @{@"id":@"", @"showText":@"8k", @"dataText":@"8000", @"items":@[]}, @{@"id":@"", @"showText":@"9k", @"dataText":@"9000", @"items":@[]}, @{@"id":@"", @"showText":@"10k", @"dataText":@"10000", @"items":@[]}, @{@"id":@"", @"showText":@"11k", @"dataText":@"11000", @"items":@[]}, @{@"id":@"", @"showText":@"12k", @"dataText":@"12000", @"items":@[]}, @{@"id":@"", @"showText":@"13k", @"dataText":@"13000", @"items":@[]}, @{@"id":@"", @"showText":@"14k", @"dataText":@"14000", @"items":@[]}, @{@"id":@"", @"showText":@"15k", @"dataText":@"15000", @"items":@[]}, @{@"id":@"", @"showText":@"16k", @"dataText":@"16000", @"items":@[]}, @{@"id":@"", @"showText":@"17k", @"dataText":@"17000", @"items":@[]}, @{@"id":@"", @"showText":@"18k", @"dataText":@"18000", @"items":@[]}, @{@"id":@"", @"showText":@"19k", @"dataText":@"19000", @"items":@[]}, @{@"id":@"", @"showText":@"20k", @"dataText":@"20000", @"items":@[]}, @{@"id":@"", @"showText":@"25k", @"dataText":@"25000", @"items":@[]}, @{@"id":@"", @"showText":@"30k", @"dataText":@"30000", @"items":@[]}, @{@"id":@"", @"showText":@"35k", @"dataText":@"35000", @"items":@[]}, @{@"id":@"", @"showText":@"40k", @"dataText":@"40000", @"items":@[]}, @{@"id":@"", @"showText":@"50k", @"dataText":@"50000", @"items":@[]}, @{@"id":@"", @"showText":@"100k", @"dataText":@"100000", @"items":@[]}]}, @{@"id":@"", @"showText":@"5k", @"dataText":@"5000", @"items":@[@{@"id":@"", @"showText":@"6k", @"dataText":@"6000", @"items":@[]}, @{@"id":@"", @"showText":@"7k", @"dataText":@"7000", @"items":@[]}, @{@"id":@"", @"showText":@"8k", @"dataText":@"8000", @"items":@[]}, @{@"id":@"", @"showText":@"9k", @"dataText":@"9000", @"items":@[]}, @{@"id":@"", @"showText":@"10k", @"dataText":@"10000", @"items":@[]}, @{@"id":@"", @"showText":@"11k", @"dataText":@"11000", @"items":@[]}, @{@"id":@"", @"showText":@"12k", @"dataText":@"12000", @"items":@[]}, @{@"id":@"", @"showText":@"13k", @"dataText":@"13000", @"items":@[]}, @{@"id":@"", @"showText":@"14k", @"dataText":@"14000", @"items":@[]}, @{@"id":@"", @"showText":@"15k", @"dataText":@"15000", @"items":@[]}, @{@"id":@"", @"showText":@"16k", @"dataText":@"16000", @"items":@[]}, @{@"id":@"", @"showText":@"17k", @"dataText":@"17000", @"items":@[]}, @{@"id":@"", @"showText":@"18k", @"dataText":@"18000", @"items":@[]}, @{@"id":@"", @"showText":@"19k", @"dataText":@"19000", @"items":@[]}, @{@"id":@"", @"showText":@"20k", @"dataText":@"20000", @"items":@[]}, @{@"id":@"", @"showText":@"25k", @"dataText":@"25000", @"items":@[]}, @{@"id":@"", @"showText":@"30k", @"dataText":@"30000", @"items":@[]}, @{@"id":@"", @"showText":@"35k", @"dataText":@"35000", @"items":@[]}, @{@"id":@"", @"showText":@"40k", @"dataText":@"40000", @"items":@[]}, @{@"id":@"", @"showText":@"50k", @"dataText":@"50000", @"items":@[]}, @{@"id":@"", @"showText":@"100k", @"dataText":@"100000", @"items":@[]}]}, @{@"id":@"", @"showText":@"6k", @"dataText":@"6000", @"items":@[@{@"id":@"", @"showText":@"7k", @"dataText":@"7000", @"items":@[]}, @{@"id":@"", @"showText":@"8k", @"dataText":@"8000", @"items":@[]}, @{@"id":@"", @"showText":@"9k", @"dataText":@"9000", @"items":@[]}, @{@"id":@"", @"showText":@"10k", @"dataText":@"10000", @"items":@[]}, @{@"id":@"", @"showText":@"11k", @"dataText":@"11000", @"items":@[]}, @{@"id":@"", @"showText":@"12k", @"dataText":@"12000", @"items":@[]}, @{@"id":@"", @"showText":@"13k", @"dataText":@"13000", @"items":@[]}, @{@"id":@"", @"showText":@"14k", @"dataText":@"14000", @"items":@[]}, @{@"id":@"", @"showText":@"15k", @"dataText":@"15000", @"items":@[]}, @{@"id":@"", @"showText":@"16k", @"dataText":@"16000", @"items":@[]}, @{@"id":@"", @"showText":@"17k", @"dataText":@"17000", @"items":@[]}, @{@"id":@"", @"showText":@"18k", @"dataText":@"18000", @"items":@[]}, @{@"id":@"", @"showText":@"19k", @"dataText":@"19000", @"items":@[]}, @{@"id":@"", @"showText":@"20k", @"dataText":@"20000", @"items":@[]}, @{@"id":@"", @"showText":@"25k", @"dataText":@"25000", @"items":@[]}, @{@"id":@"", @"showText":@"30k", @"dataText":@"30000", @"items":@[]}, @{@"id":@"", @"showText":@"35k", @"dataText":@"35000", @"items":@[]}, @{@"id":@"", @"showText":@"40k", @"dataText":@"40000", @"items":@[]}, @{@"id":@"", @"showText":@"50k", @"dataText":@"50000", @"items":@[]}, @{@"id":@"", @"showText":@"100k", @"dataText":@"100000", @"items":@[]}]}, @{@"id":@"", @"showText":@"7k", @"dataText":@"7000", @"items":@[@{@"id":@"", @"showText":@"8k", @"dataText":@"8000", @"items":@[]}, @{@"id":@"", @"showText":@"9k", @"dataText":@"9000", @"items":@[]}, @{@"id":@"", @"showText":@"10k", @"dataText":@"10000", @"items":@[]}, @{@"id":@"", @"showText":@"11k", @"dataText":@"11000", @"items":@[]}, @{@"id":@"", @"showText":@"12k", @"dataText":@"12000", @"items":@[]}, @{@"id":@"", @"showText":@"13k", @"dataText":@"13000", @"items":@[]}, @{@"id":@"", @"showText":@"14k", @"dataText":@"14000", @"items":@[]}, @{@"id":@"", @"showText":@"15k", @"dataText":@"15000", @"items":@[]}, @{@"id":@"", @"showText":@"16k", @"dataText":@"16000", @"items":@[]}, @{@"id":@"", @"showText":@"17k", @"dataText":@"17000", @"items":@[]}, @{@"id":@"", @"showText":@"18k", @"dataText":@"18000", @"items":@[]}, @{@"id":@"", @"showText":@"19k", @"dataText":@"19000", @"items":@[]}, @{@"id":@"", @"showText":@"20k", @"dataText":@"20000", @"items":@[]}, @{@"id":@"", @"showText":@"25k", @"dataText":@"25000", @"items":@[]}, @{@"id":@"", @"showText":@"30k", @"dataText":@"30000", @"items":@[]}, @{@"id":@"", @"showText":@"35k", @"dataText":@"35000", @"items":@[]}, @{@"id":@"", @"showText":@"40k", @"dataText":@"40000", @"items":@[]}, @{@"id":@"", @"showText":@"50k", @"dataText":@"50000", @"items":@[]}, @{@"id":@"", @"showText":@"100k", @"dataText":@"100000", @"items":@[]}]}, @{@"id":@"", @"showText":@"8k", @"dataText":@"8000", @"items":@[@{@"id":@"", @"showText":@"9k", @"dataText":@"9000", @"items":@[]}, @{@"id":@"", @"showText":@"10k", @"dataText":@"10000", @"items":@[]}, @{@"id":@"", @"showText":@"11k", @"dataText":@"11000", @"items":@[]}, @{@"id":@"", @"showText":@"12k", @"dataText":@"12000", @"items":@[]}, @{@"id":@"", @"showText":@"13k", @"dataText":@"13000", @"items":@[]}, @{@"id":@"", @"showText":@"14k", @"dataText":@"14000", @"items":@[]}, @{@"id":@"", @"showText":@"15k", @"dataText":@"15000", @"items":@[]}, @{@"id":@"", @"showText":@"16k", @"dataText":@"16000", @"items":@[]}, @{@"id":@"", @"showText":@"17k", @"dataText":@"17000", @"items":@[]}, @{@"id":@"", @"showText":@"18k", @"dataText":@"18000", @"items":@[]}, @{@"id":@"", @"showText":@"19k", @"dataText":@"19000", @"items":@[]}, @{@"id":@"", @"showText":@"20k", @"dataText":@"20000", @"items":@[]}, @{@"id":@"", @"showText":@"25k", @"dataText":@"25000", @"items":@[]}, @{@"id":@"", @"showText":@"30k", @"dataText":@"30000", @"items":@[]}, @{@"id":@"", @"showText":@"35k", @"dataText":@"35000", @"items":@[]}, @{@"id":@"", @"showText":@"40k", @"dataText":@"40000", @"items":@[]}, @{@"id":@"", @"showText":@"50k", @"dataText":@"50000", @"items":@[]}, @{@"id":@"", @"showText":@"100k", @"dataText":@"100000", @"items":@[]}]}, @{@"id":@"", @"showText":@"9k", @"dataText":@"9000", @"items":@[@{@"id":@"", @"showText":@"10k", @"dataText":@"10000", @"items":@[]}, @{@"id":@"", @"showText":@"11k", @"dataText":@"11000", @"items":@[]}, @{@"id":@"", @"showText":@"12k", @"dataText":@"12000", @"items":@[]}, @{@"id":@"", @"showText":@"13k", @"dataText":@"13000", @"items":@[]}, @{@"id":@"", @"showText":@"14k", @"dataText":@"14000", @"items":@[]}, @{@"id":@"", @"showText":@"15k", @"dataText":@"15000", @"items":@[]}, @{@"id":@"", @"showText":@"16k", @"dataText":@"16000", @"items":@[]}, @{@"id":@"", @"showText":@"17k", @"dataText":@"17000", @"items":@[]}, @{@"id":@"", @"showText":@"18k", @"dataText":@"18000", @"items":@[]}, @{@"id":@"", @"showText":@"19k", @"dataText":@"19000", @"items":@[]}, @{@"id":@"", @"showText":@"20k", @"dataText":@"20000", @"items":@[]}, @{@"id":@"", @"showText":@"25k", @"dataText":@"25000", @"items":@[]}, @{@"id":@"", @"showText":@"30k", @"dataText":@"30000", @"items":@[]}, @{@"id":@"", @"showText":@"35k", @"dataText":@"35000", @"items":@[]}, @{@"id":@"", @"showText":@"40k", @"dataText":@"40000", @"items":@[]}, @{@"id":@"", @"showText":@"50k", @"dataText":@"50000", @"items":@[]}, @{@"id":@"", @"showText":@"100k", @"dataText":@"100000", @"items":@[]}]}, @{@"id":@"", @"showText":@"10k", @"dataText":@"10000", @"items":@[@{@"id":@"", @"showText":@"11k", @"dataText":@"11000", @"items":@[]}, @{@"id":@"", @"showText":@"12k", @"dataText":@"12000", @"items":@[]}, @{@"id":@"", @"showText":@"13k", @"dataText":@"13000", @"items":@[]}, @{@"id":@"", @"showText":@"14k", @"dataText":@"14000", @"items":@[]}, @{@"id":@"", @"showText":@"15k", @"dataText":@"15000", @"items":@[]}, @{@"id":@"", @"showText":@"16k", @"dataText":@"16000", @"items":@[]}, @{@"id":@"", @"showText":@"17k", @"dataText":@"17000", @"items":@[]}, @{@"id":@"", @"showText":@"18k", @"dataText":@"18000", @"items":@[]}, @{@"id":@"", @"showText":@"19k", @"dataText":@"19000", @"items":@[]}, @{@"id":@"", @"showText":@"20k", @"dataText":@"20000", @"items":@[]}, @{@"id":@"", @"showText":@"25k", @"dataText":@"25000", @"items":@[]}, @{@"id":@"", @"showText":@"30k", @"dataText":@"30000", @"items":@[]}, @{@"id":@"", @"showText":@"35k", @"dataText":@"35000", @"items":@[]}, @{@"id":@"", @"showText":@"40k", @"dataText":@"40000", @"items":@[]}, @{@"id":@"", @"showText":@"50k", @"dataText":@"50000", @"items":@[]}, @{@"id":@"", @"showText":@"100k", @"dataText":@"100000", @"items":@[]}]}, @{@"id":@"", @"showText":@"11k", @"dataText":@"11000", @"items":@[@{@"id":@"", @"showText":@"12k", @"dataText":@"12000", @"items":@[]}, @{@"id":@"", @"showText":@"13k", @"dataText":@"13000", @"items":@[]}, @{@"id":@"", @"showText":@"14k", @"dataText":@"14000", @"items":@[]}, @{@"id":@"", @"showText":@"15k", @"dataText":@"15000", @"items":@[]}, @{@"id":@"", @"showText":@"16k", @"dataText":@"16000", @"items":@[]}, @{@"id":@"", @"showText":@"17k", @"dataText":@"17000", @"items":@[]}, @{@"id":@"", @"showText":@"18k", @"dataText":@"18000", @"items":@[]}, @{@"id":@"", @"showText":@"19k", @"dataText":@"19000", @"items":@[]}, @{@"id":@"", @"showText":@"20k", @"dataText":@"20000", @"items":@[]}, @{@"id":@"", @"showText":@"25k", @"dataText":@"25000", @"items":@[]}, @{@"id":@"", @"showText":@"30k", @"dataText":@"30000", @"items":@[]}, @{@"id":@"", @"showText":@"35k", @"dataText":@"35000", @"items":@[]}, @{@"id":@"", @"showText":@"40k", @"dataText":@"40000", @"items":@[]}, @{@"id":@"", @"showText":@"50k", @"dataText":@"50000", @"items":@[]}, @{@"id":@"", @"showText":@"100k", @"dataText":@"100000", @"items":@[]}]}, @{@"id":@"", @"showText":@"12k", @"dataText":@"12000", @"items":@[@{@"id":@"", @"showText":@"13k", @"dataText":@"13000", @"items":@[]}, @{@"id":@"", @"showText":@"14k", @"dataText":@"14000", @"items":@[]}, @{@"id":@"", @"showText":@"15k", @"dataText":@"15000", @"items":@[]}, @{@"id":@"", @"showText":@"16k", @"dataText":@"16000", @"items":@[]}, @{@"id":@"", @"showText":@"17k", @"dataText":@"17000", @"items":@[]}, @{@"id":@"", @"showText":@"18k", @"dataText":@"18000", @"items":@[]}, @{@"id":@"", @"showText":@"19k", @"dataText":@"19000", @"items":@[]}, @{@"id":@"", @"showText":@"20k", @"dataText":@"20000", @"items":@[]}, @{@"id":@"", @"showText":@"25k", @"dataText":@"25000", @"items":@[]}, @{@"id":@"", @"showText":@"30k", @"dataText":@"30000", @"items":@[]}, @{@"id":@"", @"showText":@"35k", @"dataText":@"35000", @"items":@[]}, @{@"id":@"", @"showText":@"40k", @"dataText":@"40000", @"items":@[]}, @{@"id":@"", @"showText":@"50k", @"dataText":@"50000", @"items":@[]}, @{@"id":@"", @"showText":@"100k", @"dataText":@"100000", @"items":@[]}]}, @{@"id":@"", @"showText":@"13k", @"dataText":@"13000", @"items":@[@{@"id":@"", @"showText":@"14k", @"dataText":@"14000", @"items":@[]}, @{@"id":@"", @"showText":@"15k", @"dataText":@"15000", @"items":@[]}, @{@"id":@"", @"showText":@"16k", @"dataText":@"16000", @"items":@[]}, @{@"id":@"", @"showText":@"17k", @"dataText":@"17000", @"items":@[]}, @{@"id":@"", @"showText":@"18k", @"dataText":@"18000", @"items":@[]}, @{@"id":@"", @"showText":@"19k", @"dataText":@"19000", @"items":@[]}, @{@"id":@"", @"showText":@"20k", @"dataText":@"20000", @"items":@[]}, @{@"id":@"", @"showText":@"25k", @"dataText":@"25000", @"items":@[]}, @{@"id":@"", @"showText":@"30k", @"dataText":@"30000", @"items":@[]}, @{@"id":@"", @"showText":@"35k", @"dataText":@"35000", @"items":@[]}, @{@"id":@"", @"showText":@"40k", @"dataText":@"40000", @"items":@[]}, @{@"id":@"", @"showText":@"50k", @"dataText":@"50000", @"items":@[]}, @{@"id":@"", @"showText":@"100k", @"dataText":@"100000", @"items":@[]}]}, @{@"id":@"", @"showText":@"14k", @"dataText":@"14000", @"items":@[@{@"id":@"", @"showText":@"15k", @"dataText":@"15000", @"items":@[]}, @{@"id":@"", @"showText":@"16k", @"dataText":@"16000", @"items":@[]}, @{@"id":@"", @"showText":@"17k", @"dataText":@"17000", @"items":@[]}, @{@"id":@"", @"showText":@"18k", @"dataText":@"18000", @"items":@[]}, @{@"id":@"", @"showText":@"19k", @"dataText":@"19000", @"items":@[]}, @{@"id":@"", @"showText":@"20k", @"dataText":@"20000", @"items":@[]}, @{@"id":@"", @"showText":@"25k", @"dataText":@"25000", @"items":@[]}, @{@"id":@"", @"showText":@"30k", @"dataText":@"30000", @"items":@[]}, @{@"id":@"", @"showText":@"35k", @"dataText":@"35000", @"items":@[]}, @{@"id":@"", @"showText":@"40k", @"dataText":@"40000", @"items":@[]}, @{@"id":@"", @"showText":@"50k", @"dataText":@"50000", @"items":@[]}, @{@"id":@"", @"showText":@"100k", @"dataText":@"100000", @"items":@[]}]}, @{@"id":@"", @"showText":@"15k", @"dataText":@"15000", @"items":@[@{@"id":@"", @"showText":@"16k", @"dataText":@"16000", @"items":@[]}, @{@"id":@"", @"showText":@"17k", @"dataText":@"17000", @"items":@[]}, @{@"id":@"", @"showText":@"18k", @"dataText":@"18000", @"items":@[]}, @{@"id":@"", @"showText":@"19k", @"dataText":@"19000", @"items":@[]}, @{@"id":@"", @"showText":@"20k", @"dataText":@"20000", @"items":@[]}, @{@"id":@"", @"showText":@"25k", @"dataText":@"25000", @"items":@[]}, @{@"id":@"", @"showText":@"30k", @"dataText":@"30000", @"items":@[]}, @{@"id":@"", @"showText":@"35k", @"dataText":@"35000", @"items":@[]}, @{@"id":@"", @"showText":@"40k", @"dataText":@"40000", @"items":@[]}, @{@"id":@"", @"showText":@"50k", @"dataText":@"50000", @"items":@[]}, @{@"id":@"", @"showText":@"100k", @"dataText":@"100000", @"items":@[]}]}, @{@"id":@"", @"showText":@"16k", @"dataText":@"16000", @"items":@[@{@"id":@"", @"showText":@"17k", @"dataText":@"17000", @"items":@[]}, @{@"id":@"", @"showText":@"18k", @"dataText":@"18000", @"items":@[]}, @{@"id":@"", @"showText":@"19k", @"dataText":@"19000", @"items":@[]}, @{@"id":@"", @"showText":@"20k", @"dataText":@"20000", @"items":@[]}, @{@"id":@"", @"showText":@"25k", @"dataText":@"25000", @"items":@[]}, @{@"id":@"", @"showText":@"30k", @"dataText":@"30000", @"items":@[]}, @{@"id":@"", @"showText":@"35k", @"dataText":@"35000", @"items":@[]}, @{@"id":@"", @"showText":@"40k", @"dataText":@"40000", @"items":@[]}, @{@"id":@"", @"showText":@"50k", @"dataText":@"50000", @"items":@[]}, @{@"id":@"", @"showText":@"100k", @"dataText":@"100000", @"items":@[]}]}, @{@"id":@"", @"showText":@"17k", @"dataText":@"17000", @"items":@[@{@"id":@"", @"showText":@"18k", @"dataText":@"18000", @"items":@[]}, @{@"id":@"", @"showText":@"19k", @"dataText":@"19000", @"items":@[]}, @{@"id":@"", @"showText":@"20k", @"dataText":@"20000", @"items":@[]}, @{@"id":@"", @"showText":@"25k", @"dataText":@"25000", @"items":@[]}, @{@"id":@"", @"showText":@"30k", @"dataText":@"30000", @"items":@[]}, @{@"id":@"", @"showText":@"35k", @"dataText":@"35000", @"items":@[]}, @{@"id":@"", @"showText":@"40k", @"dataText":@"40000", @"items":@[]}, @{@"id":@"", @"showText":@"50k", @"dataText":@"50000", @"items":@[]}, @{@"id":@"", @"showText":@"100k", @"dataText":@"100000", @"items":@[]}]}, @{@"id":@"", @"showText":@"18k", @"dataText":@"18000", @"items":@[@{@"id":@"", @"showText":@"19k", @"dataText":@"19000", @"items":@[]}, @{@"id":@"", @"showText":@"20k", @"dataText":@"20000", @"items":@[]}, @{@"id":@"", @"showText":@"25k", @"dataText":@"25000", @"items":@[]}, @{@"id":@"", @"showText":@"30k", @"dataText":@"30000", @"items":@[]}, @{@"id":@"", @"showText":@"35k", @"dataText":@"35000", @"items":@[]}, @{@"id":@"", @"showText":@"40k", @"dataText":@"40000", @"items":@[]}, @{@"id":@"", @"showText":@"50k", @"dataText":@"50000", @"items":@[]}, @{@"id":@"", @"showText":@"100k", @"dataText":@"100000", @"items":@[]}]}, @{@"id":@"", @"showText":@"19k", @"dataText":@"19000", @"items":@[@{@"id":@"", @"showText":@"20k", @"dataText":@"20000", @"items":@[]}, @{@"id":@"", @"showText":@"25k", @"dataText":@"25000", @"items":@[]}, @{@"id":@"", @"showText":@"30k", @"dataText":@"30000", @"items":@[]}, @{@"id":@"", @"showText":@"35k", @"dataText":@"35000", @"items":@[]}, @{@"id":@"", @"showText":@"40k", @"dataText":@"40000", @"items":@[]}, @{@"id":@"", @"showText":@"50k", @"dataText":@"50000", @"items":@[]}, @{@"id":@"", @"showText":@"100k", @"dataText":@"100000", @"items":@[]}]}, @{@"id":@"", @"showText":@"20k", @"dataText":@"20000", @"items":@[@{@"id":@"", @"showText":@"25k", @"dataText":@"25000", @"items":@[]}, @{@"id":@"", @"showText":@"30k", @"dataText":@"30000", @"items":@[]}, @{@"id":@"", @"showText":@"35k", @"dataText":@"35000", @"items":@[]}, @{@"id":@"", @"showText":@"40k", @"dataText":@"40000", @"items":@[]}, @{@"id":@"", @"showText":@"50k", @"dataText":@"50000", @"items":@[]}, @{@"id":@"", @"showText":@"100k", @"dataText":@"100000", @"items":@[]}]}, @{@"id":@"", @"showText":@"25k", @"dataText":@"25000", @"items":@[@{@"id":@"", @"showText":@"30k", @"dataText":@"30000", @"items":@[]}, @{@"id":@"", @"showText":@"35k", @"dataText":@"35000", @"items":@[]}, @{@"id":@"", @"showText":@"40k", @"dataText":@"40000", @"items":@[]}, @{@"id":@"", @"showText":@"50k", @"dataText":@"50000", @"items":@[]}, @{@"id":@"", @"showText":@"100k", @"dataText":@"100000", @"items":@[]}]}, @{@"id":@"", @"showText":@"30k", @"dataText":@"30000", @"items":@[@{@"id":@"", @"showText":@"35k", @"dataText":@"35000", @"items":@[]}, @{@"id":@"", @"showText":@"40k", @"dataText":@"40000", @"items":@[]}, @{@"id":@"", @"showText":@"50k", @"dataText":@"50000", @"items":@[]}, @{@"id":@"", @"showText":@"100k", @"dataText":@"100000", @"items":@[]}]}, @{@"id":@"", @"showText":@"35k", @"dataText":@"35000", @"items":@[@{@"id":@"", @"showText":@"40k", @"dataText":@"40000", @"items":@[]}, @{@"id":@"", @"showText":@"50k", @"dataText":@"50000", @"items":@[]}, @{@"id":@"", @"showText":@"100k", @"dataText":@"100000", @"items":@[]}]}, @{@"id":@"", @"showText":@"40k", @"dataText":@"40000", @"items":@[@{@"id":@"", @"showText":@"50k", @"dataText":@"50000", @"items":@[]}, @{@"id":@"", @"showText":@"100k", @"dataText":@"100000", @"items":@[]}]}, @{@"id":@"", @"showText":@"50k", @"dataText":@"50000", @"items":@[@{@"id":@"", @"showText":@"100k", @"dataText":@"100000", @"items":@[]}]}, @{@"id":@"", @"showText":@"100k", @"dataText":@"100000", @"items":@[@{@"id":@"", @"showText":@"100k", @"dataText":@"100000", @"items":@[]}]}];
    return arr;
}

@end
